package com.easy.user.service;

import com.easy.common.service.ITokenService;
import com.easy.common.util.TokenUtil;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

@Service
@DubboService
public class TokenServiceImpl implements ITokenService {
    @Override
    public boolean checkToken(String token) {
        return TokenUtil.verify(token);
    }

    @Override
    public Object getOption(String token, String key) {
        return TokenUtil.getOption(token, key);
    }
}
































